package com.warren.controller;

import com.warren.service.impl.AsyncService;
import com.warren.service.impl.MailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: warren
 * @create:
 * @description:
 */
@RestController
@RequestMapping("async")
public class AsyncController {
    @Autowired
    AsyncService asyncService;

    @GetMapping("/hello")
    String gethello() {
        asyncService.hello();
        return "ok";
    }

    @GetMapping("/hello1")
    String gethello1() {
        asyncService.asyncHello();
        return "ok";
    }
}
